package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.pojo.Setmeal;
import com.itheima.pojo.SetmealDish;
import com.itheima.pojo.SetmealDto;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    void saveSetmeal(SetmealDto setmealDto);

    Page<SetmealDto> pageSelect(Integer page, Integer pageSize, String name);

    R deleteByIds(List<Long> ids);

    void updateStatus(Integer status, List<Long> ids);

    void updateSetmealDto(SetmealDto setmealDto);

    SetmealDto getSetmealDto(Long id);

    List<Setmeal> selectSetmeal(Long categoryId, Integer status);

    List<SetmealDish> selectSetmealDish(Long setmealId);
}
